package com.jackiechancinema.ssm.service.Inte;

import com.github.pagehelper.PageInfo;
import com.jackiechancinema.ssm.bo.DepartmentBo;
import com.jackiechancinema.ssm.entity.Department;
import com.jackiechancinema.ssm.vo.PageVo;
import com.jackiechancinema.ssm.vo.R;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;

public interface DepartmentService {

    R insert(Department department);

    R delete(int depart_id);

    R update(Department department);

    PageVo<Department> page(int page, int limit);

    PageVo<Department> page2(DepartmentBo departmentBo);

    R insertBatch(MultipartFile file);

    void exportExcel(DepartmentBo bo, HttpServletResponse response);
}
